package com.YxyBackMange.Controller.web;

import com.YxyBackMange.Entity.Ware.WareGoodsType;
import com.YxyBackMange.Mapper.web.WebGoodsTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @outhor 路♥克
 * 2017-12-14 19:25
 */
@Controller
@RequestMapping("/Web/WebGoodsType")
public class WebGoodsTypeController {


    @Autowired
    private WebGoodsTypeMapper webGoodsTypeMapper;
    @RequestMapping(value = "/findAllWebGoodsType",method = RequestMethod.GET)
    @ResponseBody
    public List<WareGoodsType>  findAllWebGoodsType(){
        List<WareGoodsType> wareGoodsTypes = webGoodsTypeMapper.selectAll();
        return wareGoodsTypes;
    }
}
